﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TextBlockProject
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
        }
        private void TextBox_SelectionChanged(object sender, RoutedEventArgs e)
        {
            TextBox t = sender as TextBox;
            int st = t.SelectionStart;
            int ln = t.SelectionLength;
            string strT = t.SelectedText;
        }

        private void TextBox_LostFocus(object sender, RoutedEventArgs e)
        {

        }

    }
}
